//检测是否存在
function checkUserIfExists() {
	var userId = $("#user_userId").val();
	var message = $("#message");
	$.ajax({
		url : "homeAction!checkUserIfExists",
		data : "user.userId=" + userId,
		success : function(json) {
			if (json == "true") {
				message.html("存在");
			} else {
				message.html("不存在");
			}
		}
	});
}

// 删除
function del(id) {
	$.ajax({
		url : "homeAction!deleteUser",
		data : "user.userId=" + id,
		success : function(json) {
			if (json == "success") {
				$("#tr_" + id).remove();
			}
		}
	});
}

// 无效，滤镜
function handlechange(obj) {
	with (obj.filters(0)) {
		if (strength < 255) {
			strength += 2;
			direction += 45;
		}
	}
}
function input() {
	var input = prompt("请输入");
	alert(input);
}

// confirm
function confirmit() {
	if (confirm("确定？")) {
		alert("你同意了");
	}
}
// this
function checkthis(obj) {
	alert(obj.type);
}

//
function forin(obj){
	var children = obj.parentNode.children;
	for(flag in children){
		alert(children[flag].value);//多了几个？？
	}
	

}